import Vue from 'vue'
import VueAxios from 'vue-axios'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App.vue'
import router from './router'
import * as echarts from 'echarts'
import axios from './axios'
import store from './store'

Vue.prototype.$axios = axios
Vue.prototype.$echarts = echarts

Vue.config.productionTip = false

Vue.use(ElementUI)
Vue.use(VueAxios, axios)

new Vue({
  router,
  render: h => h(App),
  store,
  beforeCreate(){    // 在组件生成之前
    Vue.prototype.$bus = this // 安装全局事件总线
  }
}).$mount('#app')

